﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 出库单修改字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AreaCode",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "AreaName",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "BatchNo",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "DeptCode",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "DeptName",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "DisOrderLineNo",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "DisOrderNo",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "Erpcode",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "IsMultPallet",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "Mblnr",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "Mjahr",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "OwnerId",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "OwnerName",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "RefDispatchOrderId",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "RefOutVoucherId",
                table: "TShippingOrderDetails");

            migrationBuilder.RenameColumn(
                name: "Zeile",
                table: "TShippingOrderDetails",
                newName: "RelevanceOrderSn");

            migrationBuilder.RenameColumn(
                name: "StationName",
                table: "TShippingOrderDetails",
                newName: "ModelSpec");

            migrationBuilder.RenameColumn(
                name: "StationId",
                table: "TShippingOrderDetails",
                newName: "MaterialCategoryId");

            migrationBuilder.RenameColumn(
                name: "PurOrderNo",
                table: "TShippingOrderDetails",
                newName: "MaterialCategoryName");

            migrationBuilder.RenameColumn(
                name: "PurOrderLineNo",
                table: "TShippingOrderDetails",
                newName: "CellName");

            migrationBuilder.RenameColumn(
                name: "ProOrderNo",
                table: "TShippingOrderDetails",
                newName: "Agent");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "RelevanceOrderSn",
                table: "TShippingOrderDetails",
                newName: "Zeile");

            migrationBuilder.RenameColumn(
                name: "ModelSpec",
                table: "TShippingOrderDetails",
                newName: "StationName");

            migrationBuilder.RenameColumn(
                name: "MaterialCategoryName",
                table: "TShippingOrderDetails",
                newName: "PurOrderNo");

            migrationBuilder.RenameColumn(
                name: "MaterialCategoryId",
                table: "TShippingOrderDetails",
                newName: "StationId");

            migrationBuilder.RenameColumn(
                name: "CellName",
                table: "TShippingOrderDetails",
                newName: "PurOrderLineNo");

            migrationBuilder.RenameColumn(
                name: "Agent",
                table: "TShippingOrderDetails",
                newName: "ProOrderNo");

            migrationBuilder.AddColumn<string>(
                name: "AreaCode",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "AreaName",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "BatchNo",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeptCode",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeptName",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DisOrderLineNo",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DisOrderNo",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Erpcode",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsMultPallet",
                table: "TShippingOrderDetails",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Mblnr",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Mjahr",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "OwnerId",
                table: "TShippingOrderDetails",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "OwnerName",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "RefDispatchOrderId",
                table: "TShippingOrderDetails",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "RefOutVoucherId",
                table: "TShippingOrderDetails",
                type: "int",
                nullable: true);
        }
    }
}
